<template>
    <!-- 导航 -->
    <header class="nav">
      <div class="navmain">
        <ul class="nav-l">
          <li>行者&nbsp;&nbsp;一直在路上</li>
          <li>
            <a href="login.html">请登录</a>
          </li>
          <li class="nav-l-l">
            <a href="reg.html">免费注册</a>
          </li>
        </ul>
        <ul class="nav-r">
          <li>
            <a href="#">行者首页</a>
          </li>
          <li>
            <a href="#">旅游线路</a>
          </li>
          <li>
            <a href="#">旅游商品</a>
          </li>
          <li>
            <a href="#">我的旅途</a>
          </li>
          <li>
            <a href="#">联系客服</a>
          </li>
          <a href="#">
            <span>
              <i class="ico-app"></i>
              <div><img src="../../public/img/ewm-x.jpg" alt="移动端" /></div>
            </span>
          </a>
          <a href="#">
            <span>
              <i class="ico-wechat"></i>
              <div><img src="../../public/img/ewm-x.jpg" alt="移动端" /></div>
            </span>
          </a>
        </ul>
      </div>
    </header>
    <!-- 头部 -->
</template>
<style>
/* 顶部通用 */
* {
  padding: 0 auto;
  margin: 0 auto;
}
a {
  text-decoration: none;
}
ul,ol {
  list-style: none;
}
html,body {
  width: 100%;
}
.header .clearfix:after {
  content: "\200B";
  display: block;
  height: 0;
  clear: both;
}
.navmain ul {
  list-style-type: none;
  padding-left: 0;
}

.navmain li {
  float: left;
  margin-left: 20px;
}
li.nav-l-l{
  border-left:1px solid rgb(214, 214, 214);
  padding-left: 10px;
  margin-left: 10px;
}
.nav {
  width: 100%;
  height: 30px;
  background-color: rgb(235, 235, 235);
  border-bottom: 1px solid rgb(214, 214, 214);
}
.navmain {
  width: 1140px;
  height: 16px;
  margin: 0 auto;
  line-height: 16px;
  padding: 7px 30px;
  font-size: 12px;
  color: gray;
}

.nav-l a:link,
.nav-l a:visited {
  font-size: 12px;
  text-decoration: none;
  color: black;
}

.nav-l a:hover,
.nav-l a:active {
  text-decoration: none;
  color: orange;
}

.nav-r {
  font-size: 12px;
  line-height: 16px;
  margin-left: 560px;
}

.nav-r a:link,
.nav-r a:visited {
  text-decoration: none;
  color: black;
}

.nav-r a:hover,
.nav-r a:active {
  text-decoration: none;
  color: orange;
}

.nav-r li {
  border-right: 1px solid rgb(214, 214, 214);
  padding-right:20px;
}

.nav .ico-app {
  width: 10px;
  height: 16px;
  background: url(../../public/img/c.png) -100px -67px no-repeat;
  display: inline-block;
}

.nav .ico-wechat {
  width: 18px;
  height: 18px;
  background: url(../../public/img/c.png) -97px -99px no-repeat;
  display: inline-block;
}

.nav-r span {
  padding: 0 20px;
  position: relative;
}
.nav-r>a>span>div>img{
  display: block;
  border: 1px solid #ff9d12;
}
.nav-r>a>span>div{
  position: absolute;
  left: 0;
  display: none;
}
.nav-r>a>span:hover>div{
  display: block;
}
</style>